﻿
using System;
using UnityEngine;


public class TestCC : MonoBehaviour
{
    private CharacterController m_CharacterController;

    private void Awake()
    {
        m_CharacterController = gameObject.AddComponent<CharacterController>();
    }

    private void Update()
    {
        var move = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
        m_CharacterController.Move(move * Time.deltaTime * 5);
    }
}
